<%@page contentType="text/plain" pageEncoding="UTF-8" import="com.mop.dinnerbook.dao.*,java.util.*,com.mop.dinnerbook.bean.*,java.net.*"%>
<%
    Manager manager = (Manager)session.getAttribute("manager");
    if(manager != null){
        request.setCharacterEncoding("UTF-8");
        String fname = request.getParameter("fname");
        fname = URLDecoder.decode(fname, "UTF-8");
        FloorDAO dao = new FloorDAO();
        boolean result = dao.addFloor(fname);
        if(result ){
                out.write("增加楼层成功");
        }else{
                out.write(fname+"已经存在了！");
        }
     }else{
         out.write("处理失败，权限不足！");
     }
%>
